package cn.sh.cares.esb.transformer;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.mule.api.transformer.TransformerException;
import org.mule.transformer.AbstractTransformer;

public class DebugTransformer extends AbstractTransformer {

	
	private static Log log = LogFactory.getLog(DebugTransformer.class);
	
	protected Object doTransform(Object src, String encoding)
			throws TransformerException {
		
		log.debug(ToStringBuilder.reflectionToString(src));
		return src;
	}

}
